__author__ = 'Morgen Matvey, Smolnikov Rodion'

from django.db import models


class HhruToken(models.Model):
    access_token = models.CharField(max_length=200)
    refresh_token = models.CharField(max_length=200)
    expires_in = models.DateTimeField()


class CourseraToken(models.Model):
    access_token = models.CharField(max_length=200)
    refresh_token = models.CharField(max_length=200)
    expires_in = models.DateTimeField()


class User(models.Model):
    hhru_token = models.ForeignKey(HhruToken)
    coursera_token = models.ForeignKey(CourseraToken)
